package org.gelivable.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.mangofactory.swagger.controllers.DefaultSwaggerController;

@Controller
@RequestMapping(value = "/api")
public class TestBean {

	@RequestMapping(value = "/getBean", method = RequestMethod.GET)
    @ResponseBody
    public void getDynaDetail(HttpServletRequest request, HttpServletResponse response) {
		DefaultSwaggerController controller = EnvUtils.getEnv().getBean(DefaultSwaggerController.class);
		System.out.println(controller);
	}
}
